package it.polimi.swKnights.SWIMv2.ejb.entityBeans;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;

/**
 * Entity implementation class for Entity: ToConfirmUser
 * 
 */
@Entity
public class ToConfirmUser extends User implements Serializable
{

	private String activationCode;
	
	private Date validUntil;
	
	/*
	 * Serial Version ID
	 */
	
	private static final long serialVersionUID = 1L;

	/*
	 * Constructors
	 */
	
	public ToConfirmUser()
	{
		super();
	}
	
	/*
	 * Getters and setters
	 */

	public ToConfirmUser(String userName, String password, String email)
	{
		this.setUserName(userName);
		this.setPasswordHash(password);
		this.seteMail(email);
	}

	public String getActivationCode()
	{
		return activationCode;
	}

	public void setActivationCode(String activationCode)
	{
		this.activationCode = activationCode;
	}

	public Date getValidUntil()
	{
		return validUntil;
	}

	public void setValidUntil(Date validUntil)
	{
		this.validUntil = validUntil;
	}

}
